﻿<%include file="header.tpl"/>
<div class="main">
		<div class="guide">
				<ul>
					<li><a href="${webpage['home']}">首页</a></li>
					<li>></li>
					<li>${webpage['now']}</li>
				</ul>
			</div>
			<div class="forummain">
				<div class="mainhead">
					<h4>我的留言板</h4>
					<span>留言数：${gstbkpg.count}</span>
				</div>
				%for greeting in greetings:
				<div class="submainhead forumposttitle">
					<h4><a href='${greeting.webpage}'>${greeting.author}</a></h4>
					<span class="posttime">发表于：${greeting.time.strftime('%Y-%m-%d %H:%M:%S')}</span>
				</div>
				<div class="postmain">
					<div class="forumpostleft">
						<div class="forumheadpic">
							<img src="${greeting.avatarurl}" width="100px" height="100px" alt="" />
						</div>
					</div>
					<div class="postcontext">
						${greeting.content.replace('\n', '<br />')}
					</div>
					<div class="postbottom">
						<div class="bottomleftside">
						&nbsp;
						</div>
						<div class="bottomrightside">
						</div>	
					</div>	
				</div>
				%endfor
			</div>
			<div class="pager">
				%if link['next']:
					<a href="/guestbook/page/${link['page_index']+1}">下一页</a>
				%endif
				<span>第${num}页，共${link['last']}页</span>
				%if link['prev']:
					<a href="/guestbook/page/${link['page_index']-1}">上一页</a>
				%endif
			</div>
			<div class="friend">
				<div class="guide">
					<ul>
						<li><a href="${webpage['home']}">首页</a></li>
						<li>></li>
						<li>${webpage['now']}</li>
					</ul>
				</div>
			</div>
				<div class="reppost2">
					<form method="post" action="">
					<div class="posts2">
						<div class="leftpost2">
							<p>昵称(*)：<input name="author" type="text" class="inputbx" maxlength="10" /></p>
							<p>E-mial(*)：<input name="email" type="text" class="inputbx" /></p>
							<p>网站：<input name="webpage" type="text" class="inputbx" value="http://" /></p>
						</div>
						<div class="rightpost2">
							<textarea name="content" style="width: 630px; height: 100px"></textarea>
							<br />
							<input name="Submitrep" type="submit" value="提交留言" />
						</div>
					</div>
				</form>
				</div>
</div>
<%include file="footer.tpl"/>